@import "bourbon";
@import "neat";
@import "bourbon";

.devide-title {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  border-bottom: 0.1em solid #ccc;
  margin: 0 auto 2em;
  width: 65%;
  height: 1.7em;

  h1 {
    background: #fff;
    display: inline-block;
    padding: 1em;
  }

}


.post-list {
  $post-type-colors: #CCC, #d99080, #72bf9a, #92B1E3, #E3D743, #f6c05c;
  @include transition (all 0.2s ease-in-out);
  width: 60%;
  margin-left: auto;
  margin-right: auto;

  li {
    @include transition (all 0.5s ease-in-out);
    padding: 1em 0 2em 3em;
    &:focus,
    &:hover {
      background-color: transparentize(#CCC, 0.9);
    }


    a {
      display: inline-block;
      padding-bottom: 0.5em;
      color: #666;
      font-size: 1.4em;
      &:focus,
      &:hover {
        color: #339;
        text-decoration: underline;
      }

    }


    @for $i from 1 to 7 {
      &:nth-child(#{$i}) {
        $color-from-list: transparentize(nth($post-type-colors, $i), 0.5);
        .post-type {
          border: 1px solid $color-from-list;
          border-radius: 2px;
          background-color: $color-from-list;
        }

box-shadow: inset 0 0 1px #DDD, 0 2px 4px #e6e6e6;
        border-top: 9px solid $color-from-list;
        border-radius: 3px;
        background-color: transparentize(#eee, 0.7);
        margin-bottom: 2em;

        &:focus,
        &:hover {
          background-color: transparentize($color-from-list, 0.3);
        }

      }

    }


    .post-type {
      padding: 2px 4px;
      font-size: 13px;
    }


    .post-time {
      color: #aaa;
      font-size: 13px;
      padding: 1em;
      font-style: italic;
    }

  }

}


.word-list {
  @include transition (all 0.2s ease-in-out);
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2em;

  textarea {
    height: 10em;
    margin: 1em 0;
  }


  input {
    width: 100%;
  }

}


.comment {
  $base-border-radius: 3px !default;
  $base-spacing: 1.5em !default;
  $action-color: #477dca !default;
  $dark-gray: #333 !default;
  $base-font-color: $dark-gray !default;
  $comment-gutter: 1.4em;
  $comment-image-padding: 0.7em;
  $comment-image-width: 4em;
  $comment-color: $base-font-color;
  $comment-background: lighten($action-color, 15%);
  $comment-detail-color: transparentize($comment-color, 0.5);
  $comment-image-vert-alignment: top;
  @include transition (all 0.2s ease-in-out);
  border-bottom: 1px solid transparentize($comment-color, 0.9);
  display: table;
  margin-bottom: $base-spacing;
  padding-bottom: 1em;

  .comment-image,
  .comment-content {
    display: table-cell;
    vertical-align: $comment-image-vert-alignment;
  }


  .comment-image {
    padding-right: $comment-gutter;

    > img {
      background: $comment-background;
      border-radius: $base-border-radius;
      display: block;
      height: auto;
      max-width: none;
      padding: $comment-image-padding;
      width: $comment-image-width;
    }


    .comment-reverse-order & {
      padding-right: 0;
      padding-left: 10px;
    }

  }


  .comment-content {
    width: 100%;

    h1 {
      font-size: 1em;
      margin: 0 0 0.5em;
    }


    p {
      line-height: 1.5em;
      margin-bottom: 0.5em;
    }


    p.comment-detail {
      color: $comment-detail-color;
      font-size: 0.9em;
      font-style: italic;
    }

  }

}


.link-list {
  @include transition (all 0.2s ease-in-out);
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3em;

  li {
    display: inline-flex;
    a {
      font-size: 18px;
      font-weight: lighter;
      padding-right: 1em;
    }

  }

}
